package com.polylink;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import freemarker.template.TemplateException;

/**
 *@author xiliang.xiao
 *@date 2015年3月26日 上午9:36:59
 *
 **/
public class Main {

	public static void main(String[] args) throws IOException, TemplateException {
		List<Attr> attrs = new ArrayList<Attr>();
		attrs.add(new Attr("id", "id", "Integer", "ID"));
		attrs.add(new Attr("name", "ivr_name", "String", "名称"));
		attrs.add(new Attr("code", "code", "String", "功能代码"));
		attrs.add(new Attr("modeId", "mode_id", "Integer", "模块ID"));
		attrs.add(new Attr("remark", "remark", "String", "备注"));
		Bean bean = new Bean(attrs,"function","模块功能","cti_web_function");
		Code.createFile(bean, "d:/autoCode/");
		
//		id	bigint
//		ivr_num	varchar
//		ivr_name	varchar
//		start_node	bigint
//		ivr_filename	varchar
//		remark	varchar
//		timestamp	timestamp

	}

}
